<template>
  <div>
    <tr>
      <td>
        <input
          type="number"
          name=""
          id=""
          :value="obj.count"
          @input="$emit('changeCount', $event.target.value)"
        />
      </td>
      <td>{{ obj.goodsName }}</td>
      <td>{{ obj.count === 0 ? "卖光了" : "" }}</td>
    </tr>
  </div>
</template>

<script>
export default {
  name: "MyShop",
  components: {},
  props: {
    obj: {
      type: Object,
      require: true,
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
